﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ElectronicsMarket.Service.IService;
using ElectronicsMarket.Service.Models;

namespace ElectronicsMarket.Service.ServiceImpl
{
    public class DepartmentImpl:IDepartment
    {
        private ElectronicsMarketDBClassesDataContext eMEntity;
        public DepartmentImpl()
        {
            eMEntity = new ElectronicsMarketDBClassesDataContext();
        }
        public List<DEPARTMENT> getAllDepartment()
        {
            List<DEPARTMENT> lstdepartment = eMEntity.DEPARTMENTs.ToList();
            return lstdepartment;
        }
    }
}